home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / portst11.zip / PORTTEST.DOC < prev    next >
Text File  |  1991-02-11  |  24KB  |  718 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.                                       PORT TEST
  15.  
  16.  
  17.                      Comprehensive I/O Port Diagnostics for PCs
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                                     USER'S MANUAL
  25.  
  26.                                      Version 1.1
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.                               MICROSYSTEMS DEVELOPMENT
  37.                                4100 Moorpark Ave. #104
  38.                               San Jose, CA  95117   USA
  39.                                 Phone:  (408)296-4000
  40.                                  FAX:  (408)296-5877
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.                     Copyright (C) MicroSystems Development   1990
  49.                                  All rights reserved
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.           DISCLAIMER
  86.  
  87.           MicroSystems Development makes no warranty of any kind, express
  88.           or implied, including without limitation, any warranties of
  89.           merchantability and/or fitness for any specific application or
  90.           use.  MicroSystems Development shall not be liable for ANY loss
  91.           or damage arising from a failure of this program to operate in
  92.           the manner described, or in a manner desired by the user.
  93.           MicroSystems Development shall not be liable for any damage to
  94.           data or property which may be caused directly or indirectly by
  95.           use of the program.
  96.  
  97.           IN NO EVENT SHALL MICROSYSTEMS DEVELOPMENT OR ITS SUPPLIERS BE
  98.           LIABLE FOR ANY CONSEQUENTIAL, INCIDENTAL OR EXEMPLARY DAMAGES
  99.           INCLUDING, BUT NOT LIMITED TO LOSS OF PROFITS OR REVENUES, LOSS
  100.           OF USE OF ANY PRODUCT, SERVICE OR REPLACEMENT COSTS, OR CLAIMS BY
  101.           ANY THIRD PARTY.
  102.  
  103.  
  104.  
  105.           COPYRIGHT AND TRADEMARK INFORMATION
  106.  
  107.           The software code and screen displays used in PORT TEST are the
  108.           sole property of MicroSystems Development, and may not be copied,
  109.           in any form, in whole or in part, or included in any other
  110.           program or document without the express written permission of
  111.           MicroSystems Development.
  112.  
  113.  
  114.           IBM, IBM PC, IBM XT and IBM AT are registered trademarks of
  115.                International Business Machines Corporation.
  116.  
  117.           MS-DOS is a trademark of Microsoft Corporation.
  118.  
  119.           PORT TEST is a trademark of MicroSystems Development.
  120.  
  121.           MicroSystems Development is a division of
  122.                MicroSystems Development Technologies, Inc.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   TABLE OF CONTENTS
  137.  
  138.  
  139.           1.0  BACKGROUND INFORMATION................................1
  140.                1.1  Serial Port Basics...............................1
  141.                1.2  Parallel Port Basics.............................1
  142.  
  143.           2.0  ADDRESSING SCHEMES....................................3
  144.                2.1  Port Addressing..................................3
  145.                2.2  What the BIOS does...............................3
  146.                2.3  What DOS does....................................4
  147.                2.4  Logical vs. Physical Addresses...................4
  148.                2.5  Interrupt Usage..................................5
  149.  
  150.           3.0  SERIAL AND PARALLEL TESTS.............................6
  151.  
  152.           4.0  COMMAND LINE PARAMETERS...............................7
  153.  
  154.           CUSTOMER FEEDBACK FORM.....................................8
  155.  
  156.  
  157.  
  158.           In addition to tests and diagnostics, PORT TEST can do
  159.           the following:
  160.  
  161.       
  162.                porttest swap lpt1 lpt2
  163.                Swaps table addresses for lpt1 and lpt2.
  164.  
  165.                porttest com3:19200,n,8,1
  166.                Set baud rate, parity, data bits, and stop bits for a serial
  167.                port.
  168.  
  169.                porttest as 280
  170.                Adds address 0280 hex to the serial port table as the next
  171.                logical com port.
  172.  
  173.                porttest ds
  174.                Automatically detects serial ports and updates the table.
  175.  
  176.           And more...
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.           1.0  INTRODUCTION
  205.  
  206.                When computer information, known as data, is sent from one
  207.           device to another, it is carried by a wire cable.  Data is
  208.           generally sent in one of two basic ways.  Many bits at a time
  209.           over many wires in the cable is known as parallel transfer.
  210.           Sending one bit at a time over one wire is known as serial
  211.           transfer.  Each type of transfer has its own advantages and
  212.           disadvantages.  The serial or parallel connections to the
  213.           computer are called PORTS.  Collectively, they are called
  214.           Input/Output, or I/O ports.
  215.  
  216.                PORT TEST is comprehensive diagnostic program for I/O ports
  217.           installed in IBM PC and AT compatibles computers running DOS.  It
  218.           is useful to identify ports, manipulate system tables, test the
  219.           ports, and to identify and correct problems.  This manual is
  220.           intended to supplement the information provided in PORT TEST by
  221.           explaining the ways in which I/O ports are commonly used and
  222.           implemented in IBM compatible PCs.  It also describes what each
  223.           test does and provides information on what to look for if any of
  224.           the tests fail.
  225.  
  226.           1.1  SERIAL PORT BASICS
  227.  
  228.                The PC serial port uses voltages and connectors established
  229.           by the Electronic Industries Association (EIA) standard
  230.           specification known as RS-232C.  In addition to one bit of data,
  231.           other control signals are also sent and received.  Sending data
  232.           one bit at a time is relatively slow, but serial ports have the
  233.           advantage of using fewer wires to connect two devices and being
  234.           able to communicate over relatively long cable distances.  Most
  235.           serial ports can easily communicate over 100 ft of cable.  Data
  236.           is sent using +12 volts and -12 volts to represent a 0 or a 1
  237.           data bit.  In addition, there are a wide variety of serial
  238.           peripherals available which make use of the standard RS-232C
  239.           specification.  Furthermore, recent advances have made serial
  240.           data transmission reliable at higher data rates.  These data
  241.           rates are referred to as "baud" rates.
  242.  
  243.                The heart of all serial ports is an Asychronous
  244.           Communications Element, referred to as an ACE.  The CPU reads and
  245.           writes a byte (8 bits) of data to this chip, and the ACE handles
  246.           the serial transmissions and other functions related to the RS-
  247.           232C specification.  The ACE used in most PC & XT type (8088 and
  248.           8086) systems is the INS8250B or equivalent.  Most AT class
  249.           machines (80286 & above) use the NS16450 device.  The 16450 chip
  250.           is designed to handle the higher data bus rates of the faster
  251.           computers.  The serial data communications however is identical
  252.           to the 8250.  It is beyond the scope of this manual to describe
  253.           the detailed workings of these chips.  Refer to the
  254.           manufacturer's data sheets for more detailed information.
  255.  
  256.  
  257.           1.2  PARALLEL PORT BASICS
  258.  
  259.                Eight bits of data are transferred at a time over PC
  260.           parallel ports.  Data is sent using +5 volts and 0 volts to
  261.  
  262.           1                                       PORT TEST User's Manual
  263.  
  264.  
  265.  
  266.  
  267.  
  268.           represent a 1 or a 0 data bit.  As you might expect, data can be
  269.           transferred relatively fast in this manner.  The disadvantages of
  270.           this method is that more wires are needed and that most common
  271.           parallel ports can only work reliably at distances of under 20
  272.           feet.
  273.  
  274.                Unlike serial ports which rely on a chip to do the data
  275.           transmission, parallel data is handled entirely with software.
  276.           Parallel ports have three registers, one for data out, one for
  277.           output control lines, and one for input control lines.
  278.  
  279.